import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import App from './App.vue'
import './assets/global.css'
import axios from 'axios';
import router from "./router";
import store from './store'
axios.defaults.withCredentials = true; // 允许跨域携带Cookie

const app = createApp(App)
// Vue3正确配置全局属性方式
app.config.globalProperties.$axios = axios
app.config.globalProperties.$httpUrl = 'http://localhost:8080'

app.use(store)
app.use(router)
app.use(ElementPlus)
app.mount('#app')
